#include <stdio.h>

#include "SeqList.h"

int main()
{
    SeqList s;
    SeqListInit(&s,6); //将变量的地址和最大容量传进去
    SeqListPushBack(&s,1);
    SeqListPushBack(&s,2);
    SeqListPushBack(&s,3);
    SeqListPushBack(&s,4);
    SeqListPushBack(&s,5);
    SeqListPushBack(&s,6);
    printf("%d\n",SeqListCapacity(&s));
    printf("%d\n",SeqListSize(&s));
    SeqListPrint(&s);

    SeqListInsert(&s,2,8);
    SeqListPrint(&s);

    SeqListErase(&s,3);
    SeqListPrint(&s);
    
    SeqListPopBack(&s);
    SeqListPopBack(&s);
    SeqListPopBack(&s);
    printf("%d\n",SeqListCapacity(&s));
    printf("%d\n",SeqListSize(&s));
    SeqListPrint(&s);
    
    return 0;
}
